<?php

class Plato extends MY_Model {
 
    function Plato()
    {
        // Call the Model constructor
        parent::MY_Model();

	$this->nombreTabla = "plato";
	$this->idT1= "idPlato";
	$this->nombreCampo="nombre";


		$this->campos[] = array("realname" => "idCarta",
					"clase" => "partof",
					"label" => "Carta",
					"modelo" => "Carta",
					"rules" => "integer");
		
		$this->campos[] = array("realname" => "nombre",
					"clase" => "text",
					"label" => "Nombre",
					"rules" => "required|min_length[3]|max_length[45]||alpha_numeric_space");
		
		$this->campos[] = array("realname" => "descripcion",
					"clase" => "textarea",
					"label" => "Descripcion",
					"rules" => "min_length[3]|max_length[5000]|alpha_numeric_space");
		
		$this->campos[] = array("realname" => "precio",
					"clase" => "text",
					"label" => "Precio",
					"rules" => "numeric");
		
		$this->campos[] = array("realname" => "disponible",
					"clase" => "text",
					"label" => "Disponibilidad(0-No,1-Si)",
					"rules" => "exact_length[1]");
    }
     
}


?>
